package com.evildog.workspace.common.exception;


import com.evildog.workspace.common.enums.CommonCustomExceptionDesc;
import com.evildog.workspace.common.intefaces.ICustomExceptionDesc;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.http.HttpStatus;

/**
 * 请求拒绝 error
 * <p>
 * 用户已经登录，但没有相应权限
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class ForBiddenException extends CommonException {

    private static final long serialVersionUID = 6801519635531297845L;

    public ForBiddenException() {
        this(CommonCustomExceptionDesc.FORBIDDEN);
    }

    public ForBiddenException(ICustomExceptionDesc responseStatus) {
        super(responseStatus, HttpStatus.FORBIDDEN);
    }

}
